package com.qf.bean;


import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import java.util.Date;

/**
 * 用户表对用的实体类.
 */
@Data
public class User {

  private Long id;

  @NotBlank(message = "用户名不能为空!")
  private String username;

  @NotBlank(message = "密码不能为空!")
  private String password;

  @NotBlank(message = "手机号不能为空!")
  private String phone;

  private Date created;

}
